package com.bubugao.search;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author Liao
 * @version 1.0
 * @date 2021/7/15 22:17
 */
@RefreshScope
@EnableDubbo(scanBasePackages = "com.bubugao.**")
@SpringBootApplication
@EnableDiscoveryClient
public class SearchApplication implements ApplicationRunner {
//    @Value("${config.data}")
//    private String data;

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class);

    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        System.out.println(data);
    }
}
